﻿// Create the tooltips only on document load
$(document).ready(function () {
    // Notice the use of the each() method to acquire access to each elements attributes
    $('[tooltip]').each(function () {
        $(this).qtip({
            position: {
                target: 'mouse',
                adjust: { mouse: true }
            },
            content: $(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
            style: 'blue' // Give it a crea mstyle to make it stand out
        });
    });
});